package ichubcontext

import (
	"gitee.com/ichub/goconfig/common/base/basedto"
	"gitee.com/ichub/goconfig/common/ichubconfig"
)

type WebConfigFactroy struct {
	basedto.BaseEntitySingle
	WebConfig *ichubconfig.WebConfig

	Dev     *ichubconfig.WebConfig
	Test    *ichubconfig.WebConfig
	Release *ichubconfig.WebConfig
	Master  *ichubconfig.WebConfig
}

func NewWebConfigFactroy() *WebConfigFactroy {
	return &WebConfigFactroy{
		Dev:       ichubconfig.NewWebConfig(),
		Test:      ichubconfig.NewWebConfig(),
		Release:   ichubconfig.NewWebConfig(),
		Master:    ichubconfig.NewWebConfig(),
		WebConfig: ichubconfig.NewWebConfig(),
	}
}

func (this *WebConfigFactroy) Load() *WebConfigFactroy {

	return this
}
